﻿<%@ Page Title="ScrumPeak.com" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
  AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage<ProjectModel>" %>
<%@ Import Namespace="Peak.Web.Controllers.HtmlExtentions"%>
<%@ Import Namespace="Peak.Resources"%>

<%@ Import Namespace="Peak.Web.Controllers" %>
<%@ Import Namespace="Peak.Core" %>
<%@ Import Namespace="Peak.Web.Controllers.Models" %>
<asp:Content ContentPlaceHolderID="center" runat="server">

  <script type="text/javascript">
    swfobject.embedSWF("../Content/open-flash-chart.swf", "chart", "100%", "300", "9.0.0", "expressInstall.swf", { "data-file": "Burndown" });
  </script>

  <div class="page-content">
    <div class="page-title">
      <%= PageTitles.ProjectDetails %>
    </div>
    <table class="form">
      <tbody>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.Name %>
          </td>
          <td class="formData">
            <%= Model.Name %>
          </td>
        </tr>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.Vision %>
          </td>
          <td class="formData">
            <%= Model.Vision %>
          </td>
        </tr>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.Start %>
          </td>
          <td class="formData">
            <%= Model.Start.ToShortDateString()%>
          </td>
        </tr>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.End %>
          </td>
          <td class="formData">
            <%= Model.End.ToShortDateString()%>
          </td>
        </tr>
        <tr>
          <td class="formLabel" align="right">
            <%= Labels.StoryPoints %>
          </td>
          <td class="formData">
            <%= Model.StoryPoints %>
          </td>
        </tr>
        <tr>
          <td align="right">
            <%= Labels.DefinitionOfDone %>
          </td>
          <td class="formData">
            <%= Model.DefinitionOfDone %>
          </td>
        </tr>
        <tr>
          <td>
          </td>
          <td>
            <%= Html.PeakButton<ProjectController>(f => f.Edit(Model.ProjectId), Buttons.Edit)%>            
            <%= Html.PeakButton<TeamController>(f => f.Index(), Peak.Resources.Menu.TeamMembers)%>        
          </td>
        </tr>
      </tbody>
    </table>
    <div class="separator">
    </div>    
    <%--<div id="chart" class="projectChart">    
    </div>--%>
  </div>
</asp:Content>
